<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::WeightedSumKernel&lt; InputType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_weighted_sum_kernel.html">WeightedSumKernel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_weighted_sum_kernel-members.html">List of all members</a> &#124;
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::WeightedSumKernel&lt; InputType &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__models.html">Models</a> &raquo; <a class="el" href="group__kernels.html">Kernels</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Weighted sum of kernel functions.  
 <a href="classshark_1_1_weighted_sum_kernel.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_weighted_sum_kernel_8h_source.html">shark/Models/Kernels/WeightedSumKernel.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::WeightedSumKernel&lt; InputType &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_weighted_sum_kernel__inherit__graph.png" border="0" usemap="#ashark_1_1_weighted_sum_kernel_3_01_input_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_weighted_sum_kernel_3_01_input_type_01_4_inherit__map" id="ashark_1_1_weighted_sum_kernel_3_01_input_type_01_4_inherit__map">
<area shape="rect" title="Weighted sum of kernel functions." alt="" coords="14,94,194,135"/>
<area shape="rect" href="classshark_1_1_subrange_kernel.html" title="Weighted sum of kernel functions." alt="" coords="16,183,192,223"/>
<area shape="poly" title=" " alt="" coords="107,150,107,182,101,182,101,150"/>
<area shape="rect" href="classshark_1_1_abstract_kernel_function.html" title="Base class of all Kernel functions." alt="" coords="5,5,203,46"/>
<area shape="poly" title=" " alt="" coords="107,62,107,94,101,94,101,62"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_sum_kernel_1_1t_base.html">tBase</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">structure describing a single m_base kernel  <a href="structshark_1_1_weighted_sum_kernel_1_1t_base.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:afe31030a33669b789e1d92d56da07882" id="r_afe31030a33669b789e1d92d56da07882"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html#adbf700c2ece7236c70cef4b88777a733">base_type::BatchInputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a></td></tr>
<tr class="separator:afe31030a33669b789e1d92d56da07882"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6caa8268bc333f331d50366fc679419d" id="r_a6caa8268bc333f331d50366fc679419d"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">base_type::ConstInputReference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6caa8268bc333f331d50366fc679419d">ConstInputReference</a></td></tr>
<tr class="separator:a6caa8268bc333f331d50366fc679419d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c0691276ad97eaf6030cb2e5ab24679" id="r_a6c0691276ad97eaf6030cb2e5ab24679"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">base_type::ConstBatchInputReference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a></td></tr>
<tr class="separator:a6c0691276ad97eaf6030cb2e5ab24679"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_kernel_function"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_kernel_function')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_kernel_function.html">shark::AbstractKernelFunction&lt; InputTypeT &gt;</a></td></tr>
<tr class="memitem:af54c80ca837961761506e6c2eec15bde inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_af54c80ca837961761506e6c2eec15bde"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bde">Feature</a> { <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bdead621a9ae065d91a154055a38a7ea72f8">HAS_FIRST_PARAMETER_DERIVATIVE</a> = 1
, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bdeae4bd575af084f862f64bc665cad4c4ec">HAS_FIRST_INPUT_DERIVATIVE</a> = 2
, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bdea389ad713fc9ba77daf7a89714e5db666">IS_NORMALIZED</a> = 4
, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bdeae04fd78a7baf17b1591cdb6ef289e8d1">SUPPORTS_VARIABLE_INPUT_SIZE</a> = 8
 }</td></tr>
<tr class="memdesc:af54c80ca837961761506e6c2eec15bde"><td class="mdescLeft">&#160;</td><td class="mdescRight">enumerations of kerneland metric features (flags)  <a href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bde">More...</a><br /></td></tr>
<tr class="separator:af54c80ca837961761506e6c2eec15bde inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a808acb34b9c95c6af0f48177d554bd59 inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_a808acb34b9c95c6af0f48177d554bd59"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_metric.html#a8ef376e183e0fac88fc9234204c75569">base_type::InputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a></td></tr>
<tr class="memdesc:a808acb34b9c95c6af0f48177d554bd59 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Input type of the Kernel.  <br /></td></tr>
<tr class="separator:a808acb34b9c95c6af0f48177d554bd59 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbf700c2ece7236c70cef4b88777a733 inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_adbf700c2ece7236c70cef4b88777a733"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_metric.html#a3ed2427fcee73de8368e0e24ce61cada">base_type::BatchInputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#adbf700c2ece7236c70cef4b88777a733">BatchInputType</a></td></tr>
<tr class="memdesc:adbf700c2ece7236c70cef4b88777a733 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">batch input type of the kernel  <br /></td></tr>
<tr class="separator:adbf700c2ece7236c70cef4b88777a733 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40e365cb5ec7d2776105a4aef4e78df3 inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_a40e365cb5ec7d2776105a4aef4e78df3"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_metric.html#ad56b88ee5dab414cc3fe71ef6a36aa19">base_type::ConstInputReference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a></td></tr>
<tr class="memdesc:a40e365cb5ec7d2776105a4aef4e78df3 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const references to InputType.  <br /></td></tr>
<tr class="separator:a40e365cb5ec7d2776105a4aef4e78df3 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af923f26f3d015156bb5ac159b302311b inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_af923f26f3d015156bb5ac159b302311b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_metric.html#aded3435936965bcee46366318e37cbc9">base_type::ConstBatchInputReference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a></td></tr>
<tr class="memdesc:af923f26f3d015156bb5ac159b302311b inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const references to BatchInputType.  <br /></td></tr>
<tr class="separator:af923f26f3d015156bb5ac159b302311b inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63fdfe8b374750b9fa8288e06a666919 inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_a63fdfe8b374750b9fa8288e06a666919"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_flags.html">TypedFlags</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bde">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a63fdfe8b374750b9fa8288e06a666919">Features</a></td></tr>
<tr class="memdesc:a63fdfe8b374750b9fa8288e06a666919 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">This statement declares the member m_features. See <a class="el" href="_flags_8h.html">Core/Flags.h</a> for details.  <br /></td></tr>
<tr class="separator:a63fdfe8b374750b9fa8288e06a666919 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a619eef1551440a251e305cc6cd88d2f8 inherit pub_types_classshark_1_1_abstract_kernel_function" id="r_a619eef1551440a251e305cc6cd88d2f8"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_feature_not_available_exception.html">TypedFeatureNotAvailableException</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bde">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a619eef1551440a251e305cc6cd88d2f8">FeatureNotAvailableException</a></td></tr>
<tr class="separator:a619eef1551440a251e305cc6cd88d2f8 inherit pub_types_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_metric"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_metric')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_metric.html">shark::AbstractMetric&lt; InputTypeT &gt;</a></td></tr>
<tr class="memitem:a8ef376e183e0fac88fc9234204c75569 inherit pub_types_classshark_1_1_abstract_metric" id="r_a8ef376e183e0fac88fc9234204c75569"><td class="memItemLeft" align="right" valign="top">typedef InputTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#a8ef376e183e0fac88fc9234204c75569">InputType</a></td></tr>
<tr class="memdesc:a8ef376e183e0fac88fc9234204c75569 inherit pub_types_classshark_1_1_abstract_metric"><td class="mdescLeft">&#160;</td><td class="mdescRight">Input type of the Kernel.  <br /></td></tr>
<tr class="separator:a8ef376e183e0fac88fc9234204c75569 inherit pub_types_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ed2427fcee73de8368e0e24ce61cada inherit pub_types_classshark_1_1_abstract_metric" id="r_a3ed2427fcee73de8368e0e24ce61cada"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; InputTypeT &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#a3ed2427fcee73de8368e0e24ce61cada">BatchInputType</a></td></tr>
<tr class="memdesc:a3ed2427fcee73de8368e0e24ce61cada inherit pub_types_classshark_1_1_abstract_metric"><td class="mdescLeft">&#160;</td><td class="mdescRight">batch input type of the kernel  <br /></td></tr>
<tr class="separator:a3ed2427fcee73de8368e0e24ce61cada inherit pub_types_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad56b88ee5dab414cc3fe71ef6a36aa19 inherit pub_types_classshark_1_1_abstract_metric" id="r_ad56b88ee5dab414cc3fe71ef6a36aa19"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_const_proxy_reference.html">ConstProxyReference</a>&lt; InputTypeconst &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#ad56b88ee5dab414cc3fe71ef6a36aa19">ConstInputReference</a></td></tr>
<tr class="memdesc:ad56b88ee5dab414cc3fe71ef6a36aa19 inherit pub_types_classshark_1_1_abstract_metric"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const references to InputType.  <br /></td></tr>
<tr class="separator:ad56b88ee5dab414cc3fe71ef6a36aa19 inherit pub_types_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aded3435936965bcee46366318e37cbc9 inherit pub_types_classshark_1_1_abstract_metric" id="r_aded3435936965bcee46366318e37cbc9"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_const_proxy_reference.html">ConstProxyReference</a>&lt; BatchInputTypeconst &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#aded3435936965bcee46366318e37cbc9">ConstBatchInputReference</a></td></tr>
<tr class="memdesc:aded3435936965bcee46366318e37cbc9 inherit pub_types_classshark_1_1_abstract_metric"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const references to BatchInputType.  <br /></td></tr>
<tr class="separator:aded3435936965bcee46366318e37cbc9 inherit pub_types_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; VectorType &gt;</a></td></tr>
<tr class="memitem:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable" id="r_a2ad5e2e60b2b352988b41f46024d790b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">ParameterVectorType</a></td></tr>
<tr class="separator:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aee096c1b04abdeb6cc2bdd5a5b01ea17" id="r_aee096c1b04abdeb6cc2bdd5a5b01ea17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#aee096c1b04abdeb6cc2bdd5a5b01ea17">WeightedSumKernel</a> (std::vector&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt; * &gt; const &amp;base)</td></tr>
<tr class="separator:aee096c1b04abdeb6cc2bdd5a5b01ea17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe44dc95e08b7024712f4980e6dbd310" id="r_abe44dc95e08b7024712f4980e6dbd310"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#abe44dc95e08b7024712f4980e6dbd310">name</a> () const</td></tr>
<tr class="memdesc:abe44dc95e08b7024712f4980e6dbd310"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name.  <br /></td></tr>
<tr class="separator:abe44dc95e08b7024712f4980e6dbd310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86efd4f545c8abf4caea4d9c38589e80" id="r_a86efd4f545c8abf4caea4d9c38589e80"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a86efd4f545c8abf4caea4d9c38589e80">isAdaptive</a> (std::size_t index) const</td></tr>
<tr class="memdesc:a86efd4f545c8abf4caea4d9c38589e80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether m_base kernel index is adaptive.  <br /></td></tr>
<tr class="separator:a86efd4f545c8abf4caea4d9c38589e80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa433177f587bf2a79c7ec36977f15f00" id="r_aa433177f587bf2a79c7ec36977f15f00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#aa433177f587bf2a79c7ec36977f15f00">setAdaptive</a> (std::size_t index, bool b=true)</td></tr>
<tr class="memdesc:aa433177f587bf2a79c7ec36977f15f00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set adaptivity of m_base kernel index.  <br /></td></tr>
<tr class="separator:aa433177f587bf2a79c7ec36977f15f00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a227f996baf7f509c9cfe2e95f0ba1135" id="r_a227f996baf7f509c9cfe2e95f0ba1135"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a227f996baf7f509c9cfe2e95f0ba1135">setAdaptiveAll</a> (bool b=true)</td></tr>
<tr class="memdesc:a227f996baf7f509c9cfe2e95f0ba1135"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set adaptivity of all m_base kernels.  <br /></td></tr>
<tr class="separator:a227f996baf7f509c9cfe2e95f0ba1135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b684ed2ebcb1c8502e8116ee1ba8153" id="r_a3b684ed2ebcb1c8502e8116ee1ba8153"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3b684ed2ebcb1c8502e8116ee1ba8153">weight</a> (std::size_t index)</td></tr>
<tr class="memdesc:a3b684ed2ebcb1c8502e8116ee1ba8153"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the weight of a kernel.  <br /></td></tr>
<tr class="separator:a3b684ed2ebcb1c8502e8116ee1ba8153"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74cdcb5818e16690ee1088f6d5c2e77e" id="r_a74cdcb5818e16690ee1088f6d5c2e77e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a74cdcb5818e16690ee1088f6d5c2e77e">setAdaptiveWeights</a> (bool b)</td></tr>
<tr class="separator:a74cdcb5818e16690ee1088f6d5c2e77e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7947a32a41b0bff7ac5e1f5532cccf51" id="r_a7947a32a41b0bff7ac5e1f5532cccf51"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a7947a32a41b0bff7ac5e1f5532cccf51">parameterVector</a> () const</td></tr>
<tr class="separator:a7947a32a41b0bff7ac5e1f5532cccf51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f5c7a811096153b2cc2add881ea3b41" id="r_a8f5c7a811096153b2cc2add881ea3b41"><td class="memItemLeft" align="right" valign="top">boost::shared_ptr&lt; <a class="el" href="structshark_1_1_state.html">State</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8f5c7a811096153b2cc2add881ea3b41">createState</a> () const</td></tr>
<tr class="memdesc:a8f5c7a811096153b2cc2add881ea3b41"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates the internal state of the kernel  <br /></td></tr>
<tr class="separator:a8f5c7a811096153b2cc2add881ea3b41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3682a26ae5a4261c1be65d8d672d9252" id="r_a3682a26ae5a4261c1be65d8d672d9252"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3682a26ae5a4261c1be65d8d672d9252">setParameterVector</a> (RealVector const &amp;newParameters)</td></tr>
<tr class="separator:a3682a26ae5a4261c1be65d8d672d9252"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d8ada3a0f91d423094039784f700461" id="r_a0d8ada3a0f91d423094039784f700461"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a0d8ada3a0f91d423094039784f700461">numberOfParameters</a> () const</td></tr>
<tr class="memdesc:a0d8ada3a0f91d423094039784f700461"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of parameters.  <br /></td></tr>
<tr class="separator:a0d8ada3a0f91d423094039784f700461"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41a6851266bc6808f2e271e764989349" id="r_a41a6851266bc6808f2e271e764989349"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a41a6851266bc6808f2e271e764989349">eval</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6caa8268bc333f331d50366fc679419d">ConstInputReference</a> x1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6caa8268bc333f331d50366fc679419d">ConstInputReference</a> x2) const</td></tr>
<tr class="separator:a41a6851266bc6808f2e271e764989349"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b481f814c6863916b53c9c8918e8bec" id="r_a2b481f814c6863916b53c9c8918e8bec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a2b481f814c6863916b53c9c8918e8bec">eval</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX2, RealMatrix &amp;result) const</td></tr>
<tr class="separator:a2b481f814c6863916b53c9c8918e8bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad58a7538e994a5d0a0b5d49e7d582f87" id="r_ad58a7538e994a5d0a0b5d49e7d582f87"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#ad58a7538e994a5d0a0b5d49e7d582f87">eval</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX2, RealMatrix &amp;result, <a class="el" href="structshark_1_1_state.html">State</a> &amp;state) const</td></tr>
<tr class="separator:ad58a7538e994a5d0a0b5d49e7d582f87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32e469b9516edfadd503609e68c2ab4a" id="r_a32e469b9516edfadd503609e68c2ab4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a32e469b9516edfadd503609e68c2ab4a">weightedParameterDerivative</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX2, RealMatrix const &amp;coefficients, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, RealVector &amp;gradient) const</td></tr>
<tr class="separator:a32e469b9516edfadd503609e68c2ab4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac85e0509d78aeb0909c9a4b3876eb94f" id="r_ac85e0509d78aeb0909c9a4b3876eb94f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#ac85e0509d78aeb0909c9a4b3876eb94f">weightedInputDerivative</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX2, RealMatrix const &amp;coefficientsX2, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a> &amp;gradient) const</td></tr>
<tr class="separator:ac85e0509d78aeb0909c9a4b3876eb94f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03eb586f4658acdf41643b761f932b3d" id="r_a03eb586f4658acdf41643b761f932b3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a03eb586f4658acdf41643b761f932b3d">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;ar)</td></tr>
<tr class="memdesc:a03eb586f4658acdf41643b761f932b3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>, reads a metric from an archive.  <br /></td></tr>
<tr class="separator:a03eb586f4658acdf41643b761f932b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e7dc5ce57c2378159ff080e49a18382" id="r_a8e7dc5ce57c2378159ff080e49a18382"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8e7dc5ce57c2378159ff080e49a18382">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;ar) const</td></tr>
<tr class="memdesc:a8e7dc5ce57c2378159ff080e49a18382"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>, writes a metric to an archive.  <br /></td></tr>
<tr class="separator:a8e7dc5ce57c2378159ff080e49a18382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_kernel_function"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_kernel_function')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_kernel_function.html">shark::AbstractKernelFunction&lt; InputTypeT &gt;</a></td></tr>
<tr class="memitem:a81ed7e2e580d7967ba21d82cf8105c4c inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a81ed7e2e580d7967ba21d82cf8105c4c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a81ed7e2e580d7967ba21d82cf8105c4c">AbstractKernelFunction</a> ()</td></tr>
<tr class="separator:a81ed7e2e580d7967ba21d82cf8105c4c inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad813e7a91adf505e31224fba2e0ee8d1 inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_ad813e7a91adf505e31224fba2e0ee8d1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classshark_1_1_abstract_kernel_function.html#a63fdfe8b374750b9fa8288e06a666919">Features</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#ad813e7a91adf505e31224fba2e0ee8d1">features</a> () const</td></tr>
<tr class="separator:ad813e7a91adf505e31224fba2e0ee8d1 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e65f245e63e075562917986673b99af inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a6e65f245e63e075562917986673b99af"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a6e65f245e63e075562917986673b99af">updateFeatures</a> ()</td></tr>
<tr class="separator:a6e65f245e63e075562917986673b99af inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0c799ac75db64200256ed50d34d2411 inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_ac0c799ac75db64200256ed50d34d2411"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#ac0c799ac75db64200256ed50d34d2411">hasFirstParameterDerivative</a> () const</td></tr>
<tr class="separator:ac0c799ac75db64200256ed50d34d2411 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a505ca00275044073f08aae949127a76f inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a505ca00275044073f08aae949127a76f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a505ca00275044073f08aae949127a76f">hasFirstInputDerivative</a> () const</td></tr>
<tr class="separator:a505ca00275044073f08aae949127a76f inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b60def6354aac30a9c2ce5bffa6f9ae inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a3b60def6354aac30a9c2ce5bffa6f9ae"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a3b60def6354aac30a9c2ce5bffa6f9ae">isNormalized</a> () const</td></tr>
<tr class="separator:a3b60def6354aac30a9c2ce5bffa6f9ae inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a225fbad3a0efdac21e4422576de2ce4e inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a225fbad3a0efdac21e4422576de2ce4e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a225fbad3a0efdac21e4422576de2ce4e">supportsVariableInputSize</a> () const</td></tr>
<tr class="separator:a225fbad3a0efdac21e4422576de2ce4e inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd10e3815efade90c7f9e2a7cc8bcb6c inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_abd10e3815efade90c7f9e2a7cc8bcb6c"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#abd10e3815efade90c7f9e2a7cc8bcb6c">eval</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a> x1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a> x2) const</td></tr>
<tr class="memdesc:abd10e3815efade90c7f9e2a7cc8bcb6c inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates the kernel function.  <br /></td></tr>
<tr class="separator:abd10e3815efade90c7f9e2a7cc8bcb6c inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a187783089e5ee24875e43b8865b1a46e inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a187783089e5ee24875e43b8865b1a46e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a187783089e5ee24875e43b8865b1a46e">operator()</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a> x1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a> x2) const</td></tr>
<tr class="memdesc:a187783089e5ee24875e43b8865b1a46e inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience operator which evaluates the kernel function.  <br /></td></tr>
<tr class="separator:a187783089e5ee24875e43b8865b1a46e inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9edfdfdd3cbee76f67f47cf244f8b3b inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_af9edfdfdd3cbee76f67f47cf244f8b3b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#af9edfdfdd3cbee76f67f47cf244f8b3b">eval</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX2, RealMatrix &amp;result, <a class="el" href="structshark_1_1_state.html">State</a> &amp;state) const =0</td></tr>
<tr class="memdesc:af9edfdfdd3cbee76f67f47cf244f8b3b inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates the subset of the KernelGram matrix which is defined by X1(rows) and X2 (columns).  <br /></td></tr>
<tr class="separator:af9edfdfdd3cbee76f67f47cf244f8b3b inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfb9bc53f137dc1e28bf875e8851c26b inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_abfb9bc53f137dc1e28bf875e8851c26b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#abfb9bc53f137dc1e28bf875e8851c26b">eval</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX2, RealMatrix &amp;result) const</td></tr>
<tr class="memdesc:abfb9bc53f137dc1e28bf875e8851c26b inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates the subset of the KernelGram matrix which is defined by X1(rows) and X2 (columns).  <br /></td></tr>
<tr class="separator:abfb9bc53f137dc1e28bf875e8851c26b inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d5586ade0c39f0513c8e53ec5f99ed6 inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a2d5586ade0c39f0513c8e53ec5f99ed6"><td class="memItemLeft" align="right" valign="top">RealMatrix&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a2d5586ade0c39f0513c8e53ec5f99ed6">operator()</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX2) const</td></tr>
<tr class="memdesc:a2d5586ade0c39f0513c8e53ec5f99ed6 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates the subset of the KernelGram matrix which is defined by X1(rows) and X2 (columns).  <br /></td></tr>
<tr class="separator:a2d5586ade0c39f0513c8e53ec5f99ed6 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48557b9834bc06ccb4e005ce441904c8 inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a48557b9834bc06ccb4e005ce441904c8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a48557b9834bc06ccb4e005ce441904c8">weightedParameterDerivative</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX2, RealMatrix const &amp;coefficients, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, RealVector &amp;gradient) const</td></tr>
<tr class="memdesc:a48557b9834bc06ccb4e005ce441904c8 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the gradient of the parameters as a weighted sum over the gradient of all elements of the batch.  <br /></td></tr>
<tr class="separator:a48557b9834bc06ccb4e005ce441904c8 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af534a7a45f73baab879c2f0bfb75f00a inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_af534a7a45f73baab879c2f0bfb75f00a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#af534a7a45f73baab879c2f0bfb75f00a">weightedInputDerivative</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX2, RealMatrix const &amp;coefficientsX2, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_abstract_kernel_function.html#adbf700c2ece7236c70cef4b88777a733">BatchInputType</a> &amp;gradient) const</td></tr>
<tr class="memdesc:af534a7a45f73baab879c2f0bfb75f00a inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the derivative of the inputs X1 (only x1!).  <br /></td></tr>
<tr class="separator:af534a7a45f73baab879c2f0bfb75f00a inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4526b02196952d7af3bc76633c8bd6b7 inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a4526b02196952d7af3bc76633c8bd6b7"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a4526b02196952d7af3bc76633c8bd6b7">featureDistanceSqr</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a> x1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">ConstInputReference</a> x2) const</td></tr>
<tr class="memdesc:a4526b02196952d7af3bc76633c8bd6b7 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the squared distance in the kernel induced feature space.  <br /></td></tr>
<tr class="separator:a4526b02196952d7af3bc76633c8bd6b7 inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5abde1fffe84a51cb07c2242eef632ef inherit pub_methods_classshark_1_1_abstract_kernel_function" id="r_a5abde1fffe84a51cb07c2242eef632ef"><td class="memItemLeft" align="right" valign="top">virtual RealMatrix&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a5abde1fffe84a51cb07c2242eef632ef">featureDistanceSqr</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">ConstBatchInputReference</a> batchX2) const</td></tr>
<tr class="memdesc:a5abde1fffe84a51cb07c2242eef632ef inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the squared distance in the kernel induced feature space.  <br /></td></tr>
<tr class="separator:a5abde1fffe84a51cb07c2242eef632ef inherit pub_methods_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_metric"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_metric')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_metric.html">shark::AbstractMetric&lt; InputTypeT &gt;</a></td></tr>
<tr class="memitem:aeb00f4cd45e33127a8e0580aa8f1e6f0 inherit pub_methods_classshark_1_1_abstract_metric" id="r_aeb00f4cd45e33127a8e0580aa8f1e6f0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#aeb00f4cd45e33127a8e0580aa8f1e6f0">AbstractMetric</a> ()</td></tr>
<tr class="separator:aeb00f4cd45e33127a8e0580aa8f1e6f0 inherit pub_methods_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a137acb940aeb83bc435414651b347db9 inherit pub_methods_classshark_1_1_abstract_metric" id="r_a137acb940aeb83bc435414651b347db9"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#a137acb940aeb83bc435414651b347db9">~AbstractMetric</a> ()</td></tr>
<tr class="separator:a137acb940aeb83bc435414651b347db9 inherit pub_methods_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7daef46282ceda23dd469bc51afacf14 inherit pub_methods_classshark_1_1_abstract_metric" id="r_a7daef46282ceda23dd469bc51afacf14"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_metric.html#a7daef46282ceda23dd469bc51afacf14">featureDistance</a> (<a class="el" href="classshark_1_1_abstract_metric.html#ad56b88ee5dab414cc3fe71ef6a36aa19">ConstInputReference</a> x1, <a class="el" href="classshark_1_1_abstract_metric.html#ad56b88ee5dab414cc3fe71ef6a36aa19">ConstInputReference</a> x2) const</td></tr>
<tr class="memdesc:a7daef46282ceda23dd469bc51afacf14 inherit pub_methods_classshark_1_1_abstract_metric"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the distance in the kernel induced feature space.  <br /></td></tr>
<tr class="separator:a7daef46282ceda23dd469bc51afacf14 inherit pub_methods_classshark_1_1_abstract_metric"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; VectorType &gt;</a></td></tr>
<tr class="memitem:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable" id="r_a9e3a11172e74d1aa7292f3de4e2b6ebc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a9e3a11172e74d1aa7292f3de4e2b6ebc">~IParameterizable</a> ()</td></tr>
<tr class="separator:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a3ea97fa30195ad2fda455a58fa2e2839" id="r_a3ea97fa30195ad2fda455a58fa2e2839"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3ea97fa30195ad2fda455a58fa2e2839">updateNumberOfParameters</a> ()</td></tr>
<tr class="separator:a3ea97fa30195ad2fda455a58fa2e2839"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b3fc6653bb38681f0292d81251103a4" id="r_a8b3fc6653bb38681f0292d81251103a4"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a8b3fc6653bb38681f0292d81251103a4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8b3fc6653bb38681f0292d81251103a4">weightedInputDerivativeImpl</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX2, RealMatrix const &amp;coefficientsX2, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a> &amp;gradient, typename boost::enable_if&lt; boost::is_same&lt; T, RealMatrix &gt; &gt;::type *dummy=0) const</td></tr>
<tr class="separator:a8b3fc6653bb38681f0292d81251103a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c33d52aa95a25710f74bfbcd32c1e8b" id="r_a9c33d52aa95a25710f74bfbcd32c1e8b"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a9c33d52aa95a25710f74bfbcd32c1e8b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a9c33d52aa95a25710f74bfbcd32c1e8b">weightedInputDerivativeImpl</a> (<a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX1, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a> batchX2, RealMatrix const &amp;coefficientsX2, <a class="el" href="structshark_1_1_state.html">State</a> const &amp;state, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a> &amp;gradient, typename boost::disable_if&lt; boost::is_same&lt; T, RealMatrix &gt; &gt;::type *dummy=0) const</td></tr>
<tr class="separator:a9c33d52aa95a25710f74bfbcd32c1e8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a4028738f9aa22e1edab8867bb2aff529" id="r_a4028738f9aa22e1edab8867bb2aff529"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="structshark_1_1_weighted_sum_kernel_1_1t_base.html">tBase</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">m_base</a></td></tr>
<tr class="memdesc:a4028738f9aa22e1edab8867bb2aff529"><td class="mdescLeft">&#160;</td><td class="mdescRight">collection of m_base kernels  <br /></td></tr>
<tr class="separator:a4028738f9aa22e1edab8867bb2aff529"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff1ee3807f90b696b4e5e367d0091e1b" id="r_aff1ee3807f90b696b4e5e367d0091e1b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">m_weightsum</a></td></tr>
<tr class="memdesc:aff1ee3807f90b696b4e5e367d0091e1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">sum of all weights  <br /></td></tr>
<tr class="separator:aff1ee3807f90b696b4e5e367d0091e1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca8bc10711b10be934175ca051a9b64b" id="r_aca8bc10711b10be934175ca051a9b64b"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#aca8bc10711b10be934175ca051a9b64b">m_numParameters</a></td></tr>
<tr class="memdesc:aca8bc10711b10be934175ca051a9b64b"><td class="mdescLeft">&#160;</td><td class="mdescRight">total number of parameters  <br /></td></tr>
<tr class="separator:aca8bc10711b10be934175ca051a9b64b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763f50399f37666fc1f81a6fed05e062" id="r_a763f50399f37666fc1f81a6fed05e062"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a763f50399f37666fc1f81a6fed05e062">m_adaptWeights</a></td></tr>
<tr class="memdesc:a763f50399f37666fc1f81a6fed05e062"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether the weights should be adapted  <br /></td></tr>
<tr class="separator:a763f50399f37666fc1f81a6fed05e062"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classshark_1_1_abstract_kernel_function"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classshark_1_1_abstract_kernel_function')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classshark_1_1_abstract_kernel_function.html">shark::AbstractKernelFunction&lt; InputTypeT &gt;</a></td></tr>
<tr class="memitem:aa13e9ab3b8bbad9e1d773468671703e6 inherit pro_attribs_classshark_1_1_abstract_kernel_function" id="r_aa13e9ab3b8bbad9e1d773468671703e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_kernel_function.html#a63fdfe8b374750b9fa8288e06a666919">Features</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_kernel_function.html#aa13e9ab3b8bbad9e1d773468671703e6">m_features</a></td></tr>
<tr class="separator:aa13e9ab3b8bbad9e1d773468671703e6 inherit pro_attribs_classshark_1_1_abstract_kernel_function"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> = RealVector&gt;<br />
class shark::WeightedSumKernel&lt; InputType &gt;</div><p>Weighted sum of kernel functions. </p>
<p>For a set of positive definite kernels \( k_1, \dots, k_n \) with positive coeffitients \( w_1, \dots, w_n \) the sum </p><p class="formulaDsp">
\[ \tilde k(x_1, x_2) := \sum_{i=1}^{n} w_i \cdot k_i(x_1, x_2) \]
</p>
<p> is again a positive definite kernel function. Internally, the weights are represented as \( w_i = \exp(\xi_i) \) to allow for unconstrained optimization.</p>
<p>This variant of the weighted sum kernel eleminates one redundant degree of freedom by fixing the first kernel weight to 1.0.</p>
<p>The result of the kernel evaluation is devided by the sum of the kernel weights, so that in total, this amounts to fixing the sum of the of the weights to one. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00064">64</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="afe31030a33669b789e1d92d56da07882" name="afe31030a33669b789e1d92d56da07882"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe31030a33669b789e1d92d56da07882">&#9670;&#160;</a></span>BatchInputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html#adbf700c2ece7236c70cef4b88777a733">base_type::BatchInputType</a> <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::BatchInputType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00085">85</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

</div>
</div>
<a id="a6c0691276ad97eaf6030cb2e5ab24679" name="a6c0691276ad97eaf6030cb2e5ab24679"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c0691276ad97eaf6030cb2e5ab24679">&#9670;&#160;</a></span>ConstBatchInputReference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html#af923f26f3d015156bb5ac159b302311b">base_type::ConstBatchInputReference</a> <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::ConstBatchInputReference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00087">87</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

</div>
</div>
<a id="a6caa8268bc333f331d50366fc679419d" name="a6caa8268bc333f331d50366fc679419d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6caa8268bc333f331d50366fc679419d">&#9670;&#160;</a></span>ConstInputReference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html#a40e365cb5ec7d2776105a4aef4e78df3">base_type::ConstInputReference</a> <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::ConstInputReference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00086">86</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aee096c1b04abdeb6cc2bdd5a5b01ea17" name="aee096c1b04abdeb6cc2bdd5a5b01ea17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee096c1b04abdeb6cc2bdd5a5b01ea17">&#9670;&#160;</a></span>WeightedSumKernel()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::WeightedSumKernel </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt; * &gt; const &amp;&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00089">89</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bdeae4bd575af084f862f64bc665cad4c4ec">shark::AbstractKernelFunction&lt; InputType &gt;::HAS_FIRST_INPUT_DERIVATIVE</a>, <a class="el" href="classshark_1_1_abstract_kernel_function.html#af54c80ca837961761506e6c2eec15bdead621a9ae065d91a154055a38a7ea72f8">shark::AbstractKernelFunction&lt; InputType &gt;::HAS_FIRST_PARAMETER_DERIVATIVE</a>, <a class="el" href="classshark_1_1_abstract_kernel_function.html#a505ca00275044073f08aae949127a76f">shark::AbstractKernelFunction&lt; InputTypeT &gt;::hasFirstInputDerivative()</a>, <a class="el" href="classshark_1_1_abstract_kernel_function.html#ac0c799ac75db64200256ed50d34d2411">shark::AbstractKernelFunction&lt; InputTypeT &gt;::hasFirstParameterDerivative()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a763f50399f37666fc1f81a6fed05e062">shark::WeightedSumKernel&lt; InputType &gt;::m_adaptWeights</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_abstract_kernel_function.html#aa13e9ab3b8bbad9e1d773468671703e6">shark::AbstractKernelFunction&lt; InputTypeT &gt;::m_features</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aca8bc10711b10be934175ca051a9b64b">shark::WeightedSumKernel&lt; InputType &gt;::m_numParameters</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>, <a class="el" href="_exception_8h.html#a73abb5049a0168d72a48e72dda41708b">SHARK_ASSERT</a>, and <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8f5c7a811096153b2cc2add881ea3b41" name="a8f5c7a811096153b2cc2add881ea3b41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f5c7a811096153b2cc2add881ea3b41">&#9670;&#160;</a></span>createState()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boost::shared_ptr&lt; <a class="el" href="structshark_1_1_state.html">State</a> &gt; <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::createState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates the internal state of the kernel </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_kernel_function.html#a9057a4a71b4d28febb171e09bbd22c07">shark::AbstractKernelFunction&lt; InputTypeT &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00178">178</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>.</p>

</div>
</div>
<a id="a2b481f814c6863916b53c9c8918e8bec" name="a2b481f814c6863916b53c9c8918e8bec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b481f814c6863916b53c9c8918e8bec">&#9670;&#160;</a></span>eval() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix &amp;&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Evaluate the kernel according to the equation: \( k(x, y) = \frac{\sum_i \exp(w_i) k_i(x, y)}{sum_i exp(w_i)} \) for two batches of inputs. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00226">226</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#af2ab10364feb8a631e0866dcf2f1a4ad">shark::batchSize()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>.</p>

</div>
</div>
<a id="ad58a7538e994a5d0a0b5d49e7d582f87" name="ad58a7538e994a5d0a0b5d49e7d582f87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad58a7538e994a5d0a0b5d49e7d582f87">&#9670;&#160;</a></span>eval() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> &amp;&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Evaluate the kernel according to the equation: \( k(x, y) = \frac{\sum_i \exp(w_i) k_i(x, y)}{sum_i exp(w_i)} \) for two batches of inputs. (see the documentation of numberOfIntermediateValues for the workings of the intermediates) </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00244">244</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#af2ab10364feb8a631e0866dcf2f1a4ad">shark::batchSize()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>, and <a class="el" href="structshark_1_1_state.html#a9847e65e063245c6b02371c8b84f8da3">shark::State::toState()</a>.</p>

</div>
</div>
<a id="a41a6851266bc6808f2e271e764989349" name="a41a6851266bc6808f2e271e764989349"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41a6851266bc6808f2e271e764989349">&#9670;&#160;</a></span>eval() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6caa8268bc333f331d50366fc679419d">ConstInputReference</a>&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6caa8268bc333f331d50366fc679419d">ConstInputReference</a>&#160;</td>
          <td class="paramname"><em>x2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Evaluate the weighted sum kernel (according to the following equation:) \( k(x, y) = \frac{\sum_i \exp(w_i) k_i(x, y)}{sum_i exp(w_i)} \) </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00214">214</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a86efd4f545c8abf4caea4d9c38589e80" name="a86efd4f545c8abf4caea4d9c38589e80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86efd4f545c8abf4caea4d9c38589e80">&#9670;&#160;</a></span>isAdaptive()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::isAdaptive </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check whether m_base kernel index is adaptive. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00131">131</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a32e469b9516edfadd503609e68c2ab4a">shark::WeightedSumKernel&lt; InputType &gt;::weightedParameterDerivative()</a>.</p>

</div>
</div>
<a id="abe44dc95e08b7024712f4980e6dbd310" name="abe44dc95e08b7024712f4980e6dbd310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe44dc95e08b7024712f4980e6dbd310">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00127">127</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

</div>
</div>
<a id="a0d8ada3a0f91d423094039784f700461" name="a0d8ada3a0f91d423094039784f700461"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d8ada3a0f91d423094039784f700461">&#9670;&#160;</a></span>numberOfParameters()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::numberOfParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the number of parameters. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#aed1e8d1d4dbde387e2f6a25141ed3a20">shark::IParameterizable&lt; VectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00208">208</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aca8bc10711b10be934175ca051a9b64b">shark::WeightedSumKernel&lt; InputType &gt;::m_numParameters</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a7947a32a41b0bff7ac5e1f5532cccf51">shark::WeightedSumKernel&lt; InputType &gt;::parameterVector()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3682a26ae5a4261c1be65d8d672d9252">shark::WeightedSumKernel&lt; InputType &gt;::setParameterVector()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a32e469b9516edfadd503609e68c2ab4a">shark::WeightedSumKernel&lt; InputType &gt;::weightedParameterDerivative()</a>.</p>

</div>
</div>
<a id="a7947a32a41b0bff7ac5e1f5532cccf51" name="a7947a32a41b0bff7ac5e1f5532cccf51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7947a32a41b0bff7ac5e1f5532cccf51">&#9670;&#160;</a></span>parameterVector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::parameterVector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>return the parameter vector. The first N-1 entries are the (log-encoded) kernel weights, the sub-kernel's parameters are stacked behind each other after that. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#afaa2ba692ab64a0edbff60d7ee6794db">shark::IParameterizable&lt; VectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00158">158</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a0d8ada3a0f91d423094039784f700461">shark::WeightedSumKernel&lt; InputType &gt;::numberOfParameters()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3b684ed2ebcb1c8502e8116ee1ba8153">shark::WeightedSumKernel&lt; InputType &gt;::weight()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a03eb586f4658acdf41643b761f932b3d" name="a03eb586f4658acdf41643b761f932b3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03eb586f4658acdf41643b761f932b3d">&#9670;&#160;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>, reads a metric from an archive. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_metric.html#a8286ec6f54f35ab53a92d42cb251d6e4">shark::AbstractMetric&lt; InputTypeT &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00319">319</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aca8bc10711b10be934175ca051a9b64b">shark::WeightedSumKernel&lt; InputType &gt;::m_numParameters</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>.</p>

</div>
</div>
<a id="aa433177f587bf2a79c7ec36977f15f00" name="aa433177f587bf2a79c7ec36977f15f00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa433177f587bf2a79c7ec36977f15f00">&#9670;&#160;</a></span>setAdaptive()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::setAdaptive </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set adaptivity of m_base kernel index. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00135">135</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3ea97fa30195ad2fda455a58fa2e2839">shark::WeightedSumKernel&lt; InputType &gt;::updateNumberOfParameters()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a227f996baf7f509c9cfe2e95f0ba1135" name="a227f996baf7f509c9cfe2e95f0ba1135"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a227f996baf7f509c9cfe2e95f0ba1135">&#9670;&#160;</a></span>setAdaptiveAll()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::setAdaptiveAll </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set adaptivity of all m_base kernels. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00140">140</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3ea97fa30195ad2fda455a58fa2e2839">shark::WeightedSumKernel&lt; InputType &gt;::updateNumberOfParameters()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a74cdcb5818e16690ee1088f6d5c2e77e" name="a74cdcb5818e16690ee1088f6d5c2e77e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74cdcb5818e16690ee1088f6d5c2e77e">&#9670;&#160;</a></span>setAdaptiveWeights()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::setAdaptiveWeights </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00152">152</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a763f50399f37666fc1f81a6fed05e062">shark::WeightedSumKernel&lt; InputType &gt;::m_adaptWeights</a>.</p>

</div>
</div>
<a id="a3682a26ae5a4261c1be65d8d672d9252" name="a3682a26ae5a4261c1be65d8d672d9252"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3682a26ae5a4261c1be65d8d672d9252">&#9670;&#160;</a></span>setParameterVector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::setParameterVector </td>
          <td>(</td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>newParameters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>set the parameter vector. The first N-1 entries are the (log-encoded) kernel weights, the sub-kernel's parameters are stacked behind each other after that. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_parameterizable.html#ad5e35d1a10ff36fa72ea787baa40e9ad">shark::IParameterizable&lt; VectorType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00188">188</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a0d8ada3a0f91d423094039784f700461">shark::WeightedSumKernel&lt; InputType &gt;::numberOfParameters()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mkl_kernel_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a3ea97fa30195ad2fda455a58fa2e2839" name="a3ea97fa30195ad2fda455a58fa2e2839"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ea97fa30195ad2fda455a58fa2e2839">&#9670;&#160;</a></span>updateNumberOfParameters()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::updateNumberOfParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00347">347</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a763f50399f37666fc1f81a6fed05e062">shark::WeightedSumKernel&lt; InputType &gt;::m_adaptWeights</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aca8bc10711b10be934175ca051a9b64b">shark::WeightedSumKernel&lt; InputType &gt;::m_numParameters</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aa433177f587bf2a79c7ec36977f15f00">shark::WeightedSumKernel&lt; InputType &gt;::setAdaptive()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a227f996baf7f509c9cfe2e95f0ba1135">shark::WeightedSumKernel&lt; InputType &gt;::setAdaptiveAll()</a>.</p>

</div>
</div>
<a id="a3b684ed2ebcb1c8502e8116ee1ba8153" name="a3b684ed2ebcb1c8502e8116ee1ba8153"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b684ed2ebcb1c8502e8116ee1ba8153">&#9670;&#160;</a></span>weight()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::weight </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the weight of a kernel. </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00147">147</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, and <a class="el" href="_exception_8h.html#abd848215f138fc44f696aecb3e417e6c">RANGE_CHECK</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a7947a32a41b0bff7ac5e1f5532cccf51">shark::WeightedSumKernel&lt; InputType &gt;::parameterVector()</a>.</p>

</div>
</div>
<a id="ac85e0509d78aeb0909c9a4b3876eb94f" name="ac85e0509d78aeb0909c9a4b3876eb94f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac85e0509d78aeb0909c9a4b3876eb94f">&#9670;&#160;</a></span>weightedInputDerivative()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::weightedInputDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>coefficientsX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> const &amp;&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Input derivative, calculated according to the equation: <br  />
  \( \frac{\partial k(x, y)}{\partial x}
    \frac{\sum_i \exp(w_i) \frac{\partial k_i(x, y)}{\partial x}}
         {\sum_i exp(w_i)} \) and summed up over all of the second batch </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00307">307</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#af2ab10364feb8a631e0866dcf2f1a4ad">shark::batchSize()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a9c33d52aa95a25710f74bfbcd32c1e8b" name="a9c33d52aa95a25710f74bfbcd32c1e8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c33d52aa95a25710f74bfbcd32c1e8b">&#9670;&#160;</a></span>weightedInputDerivativeImpl() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::weightedInputDerivativeImpl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>coefficientsX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> const &amp;&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">typename boost::disable_if&lt; boost::is_same&lt; T, RealMatrix &gt; &gt;::type *&#160;</td>
          <td class="paramname"><em>dummy</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00382">382</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="_exception_8h.html#a4e03d7dfdfe8cbc90447fa829fc09e4f">SHARKEXCEPTION</a>.</p>

</div>
</div>
<a id="a8b3fc6653bb38681f0292d81251103a4" name="a8b3fc6653bb38681f0292d81251103a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b3fc6653bb38681f0292d81251103a4">&#9670;&#160;</a></span>weightedInputDerivativeImpl() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::weightedInputDerivativeImpl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>coefficientsX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> const &amp;&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#afe31030a33669b789e1d92d56da07882">BatchInputType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">typename boost::enable_if&lt; boost::is_same&lt; T, RealMatrix &gt; &gt;::type *&#160;</td>
          <td class="paramname"><em>dummy</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00359">359</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>, and <a class="el" href="structshark_1_1_state.html#a9847e65e063245c6b02371c8b84f8da3">shark::State::toState()</a>.</p>

</div>
</div>
<a id="a32e469b9516edfadd503609e68c2ab4a" name="a32e469b9516edfadd503609e68c2ab4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32e469b9516edfadd503609e68c2ab4a">&#9670;&#160;</a></span>weightedParameterDerivative()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::weightedParameterDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_sum_kernel.html#a6c0691276ad97eaf6030cb2e5ab24679">ConstBatchInputReference</a>&#160;</td>
          <td class="paramname"><em>batchX2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>coefficients</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_state.html">State</a> const &amp;&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00262">262</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a86efd4f545c8abf4caea4d9c38589e80">shark::WeightedSumKernel&lt; InputType &gt;::isAdaptive()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a763f50399f37666fc1f81a6fed05e062">shark::WeightedSumKernel&lt; InputType &gt;::m_adaptWeights</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a0d8ada3a0f91d423094039784f700461">shark::WeightedSumKernel&lt; InputType &gt;::numberOfParameters()</a>, <a class="el" href="group__shark__globals.html#gae1f82613484173e9fe1a07960dabff63">shark::sqr()</a>, and <a class="el" href="structshark_1_1_state.html#a9847e65e063245c6b02371c8b84f8da3">shark::State::toState()</a>.</p>

</div>
</div>
<a id="a8e7dc5ce57c2378159ff080e49a18382" name="a8e7dc5ce57c2378159ff080e49a18382"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e7dc5ce57c2378159ff080e49a18382">&#9670;&#160;</a></span>write()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality.">ISerializable</a>, writes a metric to an archive. </p>
<p>The default implementation just saves the parameters. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_abstract_metric.html#a525c9c1f3d9af398bb257b8e42cafe24">shark::AbstractMetric&lt; InputTypeT &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00328">328</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a4028738f9aa22e1edab8867bb2aff529">shark::WeightedSumKernel&lt; InputType &gt;::m_base</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aca8bc10711b10be934175ca051a9b64b">shark::WeightedSumKernel&lt; InputType &gt;::m_numParameters</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aff1ee3807f90b696b4e5e367d0091e1b">shark::WeightedSumKernel&lt; InputType &gt;::m_weightsum</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a763f50399f37666fc1f81a6fed05e062" name="a763f50399f37666fc1f81a6fed05e062"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a763f50399f37666fc1f81a6fed05e062">&#9670;&#160;</a></span>m_adaptWeights</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::m_adaptWeights</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>whether the weights should be adapted </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00396">396</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a74cdcb5818e16690ee1088f6d5c2e77e">shark::WeightedSumKernel&lt; InputType &gt;::setAdaptiveWeights()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3ea97fa30195ad2fda455a58fa2e2839">shark::WeightedSumKernel&lt; InputType &gt;::updateNumberOfParameters()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a32e469b9516edfadd503609e68c2ab4a">shark::WeightedSumKernel&lt; InputType &gt;::weightedParameterDerivative()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aee096c1b04abdeb6cc2bdd5a5b01ea17">shark::WeightedSumKernel&lt; InputType &gt;::WeightedSumKernel()</a>.</p>

</div>
</div>
<a id="a4028738f9aa22e1edab8867bb2aff529" name="a4028738f9aa22e1edab8867bb2aff529"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4028738f9aa22e1edab8867bb2aff529">&#9670;&#160;</a></span>m_base</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="structshark_1_1_weighted_sum_kernel_1_1t_base.html">tBase</a>&gt; <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::m_base</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>collection of m_base kernels </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00393">393</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8f5c7a811096153b2cc2add881ea3b41">shark::WeightedSumKernel&lt; InputType &gt;::createState()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a2b481f814c6863916b53c9c8918e8bec">shark::WeightedSumKernel&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#ad58a7538e994a5d0a0b5d49e7d582f87">shark::WeightedSumKernel&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a41a6851266bc6808f2e271e764989349">shark::WeightedSumKernel&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a86efd4f545c8abf4caea4d9c38589e80">shark::WeightedSumKernel&lt; InputType &gt;::isAdaptive()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a7947a32a41b0bff7ac5e1f5532cccf51">shark::WeightedSumKernel&lt; InputType &gt;::parameterVector()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a03eb586f4658acdf41643b761f932b3d">shark::WeightedSumKernel&lt; InputType &gt;::read()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aa433177f587bf2a79c7ec36977f15f00">shark::WeightedSumKernel&lt; InputType &gt;::setAdaptive()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a227f996baf7f509c9cfe2e95f0ba1135">shark::WeightedSumKernel&lt; InputType &gt;::setAdaptiveAll()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3682a26ae5a4261c1be65d8d672d9252">shark::WeightedSumKernel&lt; InputType &gt;::setParameterVector()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3ea97fa30195ad2fda455a58fa2e2839">shark::WeightedSumKernel&lt; InputType &gt;::updateNumberOfParameters()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3b684ed2ebcb1c8502e8116ee1ba8153">shark::WeightedSumKernel&lt; InputType &gt;::weight()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8b3fc6653bb38681f0292d81251103a4">shark::WeightedSumKernel&lt; InputType &gt;::weightedInputDerivativeImpl()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a32e469b9516edfadd503609e68c2ab4a">shark::WeightedSumKernel&lt; InputType &gt;::weightedParameterDerivative()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aee096c1b04abdeb6cc2bdd5a5b01ea17">shark::WeightedSumKernel&lt; InputType &gt;::WeightedSumKernel()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8e7dc5ce57c2378159ff080e49a18382">shark::WeightedSumKernel&lt; InputType &gt;::write()</a>.</p>

</div>
</div>
<a id="aca8bc10711b10be934175ca051a9b64b" name="aca8bc10711b10be934175ca051a9b64b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca8bc10711b10be934175ca051a9b64b">&#9670;&#160;</a></span>m_numParameters</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::m_numParameters</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>total number of parameters </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00395">395</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a0d8ada3a0f91d423094039784f700461">shark::WeightedSumKernel&lt; InputType &gt;::numberOfParameters()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a03eb586f4658acdf41643b761f932b3d">shark::WeightedSumKernel&lt; InputType &gt;::read()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3ea97fa30195ad2fda455a58fa2e2839">shark::WeightedSumKernel&lt; InputType &gt;::updateNumberOfParameters()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aee096c1b04abdeb6cc2bdd5a5b01ea17">shark::WeightedSumKernel&lt; InputType &gt;::WeightedSumKernel()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8e7dc5ce57c2378159ff080e49a18382">shark::WeightedSumKernel&lt; InputType &gt;::write()</a>.</p>

</div>
</div>
<a id="aff1ee3807f90b696b4e5e367d0091e1b" name="aff1ee3807f90b696b4e5e367d0091e1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff1ee3807f90b696b4e5e367d0091e1b">&#9670;&#160;</a></span>m_weightsum</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a>  = RealVector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_weighted_sum_kernel.html">shark::WeightedSumKernel</a>&lt; <a class="el" href="classshark_1_1_abstract_kernel_function.html#a808acb34b9c95c6af0f48177d554bd59">InputType</a> &gt;::m_weightsum</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>sum of all weights </p>

<p class="definition">Definition at line <a class="el" href="_weighted_sum_kernel_8h_source.html#l00394">394</a> of file <a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a2b481f814c6863916b53c9c8918e8bec">shark::WeightedSumKernel&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#ad58a7538e994a5d0a0b5d49e7d582f87">shark::WeightedSumKernel&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a41a6851266bc6808f2e271e764989349">shark::WeightedSumKernel&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a03eb586f4658acdf41643b761f932b3d">shark::WeightedSumKernel&lt; InputType &gt;::read()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a3682a26ae5a4261c1be65d8d672d9252">shark::WeightedSumKernel&lt; InputType &gt;::setParameterVector()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8b3fc6653bb38681f0292d81251103a4">shark::WeightedSumKernel&lt; InputType &gt;::weightedInputDerivativeImpl()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a32e469b9516edfadd503609e68c2ab4a">shark::WeightedSumKernel&lt; InputType &gt;::weightedParameterDerivative()</a>, <a class="el" href="classshark_1_1_weighted_sum_kernel.html#aee096c1b04abdeb6cc2bdd5a5b01ea17">shark::WeightedSumKernel&lt; InputType &gt;::WeightedSumKernel()</a>, and <a class="el" href="classshark_1_1_weighted_sum_kernel.html#a8e7dc5ce57c2378159ff080e49a18382">shark::WeightedSumKernel&lt; InputType &gt;::write()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Models/Kernels/<a class="el" href="_weighted_sum_kernel_8h_source.html">WeightedSumKernel.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
